<script lang="ts">
    let x = $state();
    export function foo() { return true; }
</script>

{x}
